@import "_variables";
@import "../_colors";

$blue:    #007bff !default;
$indigo:  #6610f2 !default;
$purple:  #6f42c1 !default;
$pink:    #e83e8c !default;
$red:     #dc3545 !default;
$orange:  #fd7e14 !default;
$yellow:  #ffc107 !default;
$green:   #28a745 !default;
$teal:    #20c997 !default;
$cyan:    #17a2b8 !default;



$white:    #fff !default;
$gray-100: #f8f9fa !default;
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #6c757d !default;
$gray-700: #495057 !default;
$gray-800: #343a40 !default;
$gray-900: #212529 !default;
$black:    #000 !default;


//$primary:       $blue !default;
//$secondary:     $gray-600 !default;
//$success:       $green !default;
//$info:          $cyan !default;
//$warning:       $yellow !default;
//$danger:        $red !default;
//$light:         $gray-100 !default;
//$dark:          $gray-800 !default;





#mainHeader {
    border-bottom: solid 1px #d8d8d8;
}

#mainFooter {
    border-top: solid 1px #d8d8d8;
}

.card {
    box-shadow: 0 2px 3px rgba(0, 0, 0, .16);

    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1.3rem;
    }
}

.modal {
    .modal-header {
        background: #fff;
    }

    .modal-content {
        background: #fafafa;
    }
}

#mainSidebar {
    a {
        color: $gray-700;
        padding: 0.5rem 0;
    }

    svg {
        fill: $gray-500;
    }

    li.active {
        a {
            color: $primary;
        }

        svg {
            fill: $primary;
        }
    }

    i {
        display: inline-flex;
        align-self: center;
        position: relative;
        height: 1em;
        width: 0.4em;
        margin-right: 1.5rem;

        svg {
            bottom: -.3em;
            position: absolute;
            width: 1.2rem;
            height: 1.2rem;
        }
    }
}

.stats {
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;

    .stat {
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-color: #d8d8d8;

        .stat-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: $gray-700;
        }

        .stat-value {
            font-size: 1.4rem;
        }

        .stat-meta{
            font-size: 1rem;
            line-height: 2rem;
        }
    }
}

.statusIcon {
    > svg {
        width: 1.5rem;
        height: 1.5rem
    }
}

.icon {
    > svg {
        width: 1.5rem;
        height: 1.5rem
    }
}

.icon-sm {
    > svg {
        width: 1rem;
        height: 1rem
    }
}

.fill-white {
    fill: #fff;
}

.fill-primary {
    fill: $primary;
}

.fill-success {
    fill: $success;
}

.fill-danger {
    fill: $danger;
}

.fill-warning {
    fill: $warning;
}

.card-table {
    margin: 0;

    tr:first-child {
        td {
            border: 0;
        }
    }

    th {
        background-color: #ebecee;
        vertical-align: middle;
        font-weight: normal;
        padding: 0.5rem 1.25rem;
        border: 0;
    }

    td {
        padding: 1.25rem;
        vertical-align: middle;
    }
}

.card-tabs {
    padding: 0 1.25rem;

    .nav-item {
        margin-right: 1.5rem;
    }

    .nav-link {
        border: 0;
        color: #495057;
        padding: 0.8rem 0;
    }

    .nav-link.active {
        background-color: transparent;
        color: $primary;
        border-bottom: solid 2px $primary;
    }
}

@-webkit-keyframes spin {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.spin {
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    -ms-animation: spin 2s linear infinite;
    -o-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.exceptionDisplay {
    span {
        margin-bottom: 5px;
        display: block;
        background: #efefef;
        padding: 1px 3px;
    }
}

.jobDetailsText {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-y: scroll;
    max-height: 400px;

    span, pre {
        margin-bottom: 5px;
        display: block;
        background: #efefef;
        padding: 1px 3px;
    }
}
